package it.univaq.di.helpdesk.business.common;

import java.util.List;
import java.util.Map;

import it.univaq.di.helpdesk.business.errors.BusinessException;
import it.univaq.di.helpdesk.business.model.Device;
import it.univaq.di.helpdesk.business.model.Faq;

public interface DeviceService {

	public Device findDeviceById(int ID) throws BusinessException;
	
	public List<Device> findDeviceByUserId(int ID) throws BusinessException;
	
	public Device getDeviceById(int ID) throws BusinessException;
	
	public void addDevice(Device device) throws BusinessException;
	
	public void deleteDevice(int ID) throws BusinessException;

	public List<Device> searchForDevice(Map<String, String> queryParam) throws BusinessException;

	public void changeDeviceAssigned(Map<String, String> mapassigned) throws BusinessException;
	
	public void changeDeviceAssignedOffice(Map<String, String> mapassignedoffice) throws BusinessException;
	
	public boolean isDeviceAssigned(int deviceID) throws BusinessException;

	public void updateDevice(Device device) throws BusinessException;
}
